<template>
  <component :is="component" v-model="option"></component>
</template>

<script setup lang='ts'>
import { HomeworkVo } from '@/modules/homework/api/homework';
import custom from './custom.vue';

const $props = defineProps<{
  model: HomeworkVo
}>()
const component = computed(() => {
  return {
    custom
  }[$props.model.mode!];
})

const option = defineModel()


</script>

<style></style>
